import request from '@/utils/request'

// 卡列表（分页）
export function pageList(query) {
  return request({
    url: '/system/interlace/card/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 详情
export function getDetail(id) {
  return request({
    url: '/system/interlace/card/detail/' + id,
    method: 'get',
    loading: true
  })
}

// 卡申请列表（分页）
export function cardApplyPageList(query) {
  return request({
    url: '/system/interlace/card/apply/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 卡交易列表（分页）
export function transactionPageList(query) {
  return request({
    url: '/system/interlace/card/transaction/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 交易详情
export function getTransactionDetail(id) {
  return request({
    url: '/system/interlace/card/transaction/detail/' + id,
    method: 'get',
    loading: true
  })
}

// 删除
export function remove(id) {
  return request({
    url: '/system/interlace/card/card/del/' + id,
    method: 'delete',
    loading: true
  })
}
